.class Lcom/example/m6shop/AddressListActivity$2;
.super Landroid/os/Handler;
.source "AddressListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6shop/AddressListActivity;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6shop/AddressListActivity;


# direct methods
.method constructor <init>(Lcom/example/m6shop/AddressListActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    .line 182
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 19
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 186
    invoke-super/range {p0 .. p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 188
    move-object/from16 v0, p1

    iget v15, v0, Landroid/os/Message;->what:I

    packed-switch v15, :pswitch_data_0

    .line 343
    :cond_0
    :goto_0
    :pswitch_0
    return-void

    .line 192
    :pswitch_1
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # invokes: Lcom/example/m6shop/AddressListActivity;->getaddressData()V
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$6(Lcom/example/m6shop/AddressListActivity;)V

    goto :goto_0

    .line 198
    :pswitch_2
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->gethttpsString:Ljava/lang/String;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$3(Lcom/example/m6shop/AddressListActivity;)Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_0

    .line 204
    :try_start_0
    new-instance v11, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->gethttpsString:Ljava/lang/String;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$3(Lcom/example/m6shop/AddressListActivity;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v11, v15}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 205
    .local v11, "jsonObject":Lorg/json/JSONObject;
    const-string v15, "error"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    const-string v16, "true"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_0

    .line 208
    const-string v15, "msg"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v15

    if-nez v15, :cond_0

    .line 213
    const-string v15, "msg"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v10

    .line 215
    .local v10, "jsonArray":Lorg/json/JSONArray;
    const/4 v7, 0x0

    .local v7, "i":I
    :goto_1
    invoke-virtual {v10}, Lorg/json/JSONArray;->length()I

    move-result v15

    if-lt v7, v15, :cond_1

    .line 241
    const-string v15, "yyyyyyyyyyyyyyyy"

    invoke-virtual {v11}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v15 .. v16}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    .line 250
    .end local v7    # "i":I
    .end local v10    # "jsonArray":Lorg/json/JSONArray;
    .end local v11    # "jsonObject":Lorg/json/JSONObject;
    :goto_2
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->handler:Landroid/os/Handler;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$7(Lcom/example/m6shop/AddressListActivity;)Landroid/os/Handler;

    move-result-object v15

    const/16 v16, 0x3

    invoke-virtual/range {v15 .. v16}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto :goto_0

    .line 217
    .restart local v7    # "i":I
    .restart local v10    # "jsonArray":Lorg/json/JSONArray;
    .restart local v11    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    invoke-virtual {v10, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    .line 218
    .local v12, "jsonObject2":Lorg/json/JSONObject;
    const-string v15, "id"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 219
    .local v8, "id":Ljava/lang/String;
    const-string v15, "contactname"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 220
    .local v4, "contactname":Ljava/lang/String;
    const-string v15, "address"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 221
    .local v1, "address":Ljava/lang/String;
    const-string v15, "phone"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 222
    .local v13, "phonenet":Ljava/lang/String;
    const-string v15, "default"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 223
    .local v9, "isdefault":Ljava/lang/String;
    const-string v15, "sex"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    .line 224
    .local v14, "sexnet":Ljava/lang/String;
    const-string v15, "detailadr"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 225
    .local v5, "detailadr":Ljava/lang/String;
    const-string v15, "bigadr"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 228
    .local v3, "bigadr":Ljava/lang/String;
    new-instance v2, Lbean/AddressBean;

    invoke-direct {v2}, Lbean/AddressBean;-><init>()V

    .line 229
    .local v2, "bean":Lbean/AddressBean;
    invoke-virtual {v2, v4}, Lbean/AddressBean;->setContactname(Ljava/lang/String;)V

    .line 230
    invoke-virtual {v2, v13}, Lbean/AddressBean;->setPhone(Ljava/lang/String;)V

    .line 231
    invoke-virtual {v2, v14}, Lbean/AddressBean;->setSex(Ljava/lang/String;)V

    .line 232
    invoke-virtual {v2, v8}, Lbean/AddressBean;->setId(Ljava/lang/String;)V

    .line 233
    invoke-virtual {v2, v1}, Lbean/AddressBean;->setAddress(Ljava/lang/String;)V

    .line 234
    invoke-virtual {v2, v5}, Lbean/AddressBean;->setDetailadr(Ljava/lang/String;)V

    .line 235
    invoke-virtual {v2, v3}, Lbean/AddressBean;->setBigadr(Ljava/lang/String;)V

    .line 236
    invoke-virtual {v2, v9}, Lbean/AddressBean;->setIs_default(Ljava/lang/String;)V

    .line 237
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$0(Lcom/example/m6shop/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v15, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 215
    add-int/lit8 v7, v7, 0x1

    goto :goto_1

    .line 244
    .end local v1    # "address":Ljava/lang/String;
    .end local v2    # "bean":Lbean/AddressBean;
    .end local v3    # "bigadr":Ljava/lang/String;
    .end local v4    # "contactname":Ljava/lang/String;
    .end local v5    # "detailadr":Ljava/lang/String;
    .end local v7    # "i":I
    .end local v8    # "id":Ljava/lang/String;
    .end local v9    # "isdefault":Ljava/lang/String;
    .end local v10    # "jsonArray":Lorg/json/JSONArray;
    .end local v11    # "jsonObject":Lorg/json/JSONObject;
    .end local v12    # "jsonObject2":Lorg/json/JSONObject;
    .end local v13    # "phonenet":Ljava/lang/String;
    .end local v14    # "sexnet":Ljava/lang/String;
    :catch_0
    move-exception v6

    .line 247
    .local v6, "e":Lorg/json/JSONException;
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_2

    .line 260
    .end local v6    # "e":Lorg/json/JSONException;
    :pswitch_3
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$0(Lcom/example/m6shop/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v15

    if-eqz v15, :cond_0

    .line 262
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    new-instance v16, Lcom/example/m6shop/AddressListActivity$MyAdapter;

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    move-object/from16 v17, v0

    const/16 v18, 0x0

    invoke-direct/range {v16 .. v18}, Lcom/example/m6shop/AddressListActivity$MyAdapter;-><init>(Lcom/example/m6shop/AddressListActivity;Lcom/example/m6shop/AddressListActivity$MyAdapter;)V

    invoke-static/range {v15 .. v16}, Lcom/example/m6shop/AddressListActivity;->access$8(Lcom/example/m6shop/AddressListActivity;Lcom/example/m6shop/AddressListActivity$MyAdapter;)V

    .line 263
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->Xlt_address:Lorg/com/cctest/view/XListView;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$9(Lcom/example/m6shop/AddressListActivity;)Lorg/com/cctest/view/XListView;

    move-result-object v15

    move-object/from16 v0, p0

    iget-object v0, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    move-object/from16 v16, v0

    # getter for: Lcom/example/m6shop/AddressListActivity;->adapter:Lcom/example/m6shop/AddressListActivity$MyAdapter;
    invoke-static/range {v16 .. v16}, Lcom/example/m6shop/AddressListActivity;->access$10(Lcom/example/m6shop/AddressListActivity;)Lcom/example/m6shop/AddressListActivity$MyAdapter;

    move-result-object v16

    invoke-virtual/range {v15 .. v16}, Lorg/com/cctest/view/XListView;->setAdapter(Landroid/widget/ListAdapter;)V

    goto/16 :goto_0

    .line 272
    :pswitch_4
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # invokes: Lcom/example/m6shop/AddressListActivity;->getaddressData()V
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$6(Lcom/example/m6shop/AddressListActivity;)V

    goto/16 :goto_0

    .line 276
    :pswitch_5
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->gethttpsString:Ljava/lang/String;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$3(Lcom/example/m6shop/AddressListActivity;)Ljava/lang/String;

    move-result-object v15

    if-eqz v15, :cond_0

    .line 278
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$0(Lcom/example/m6shop/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v15}, Ljava/util/ArrayList;->clear()V

    .line 283
    :try_start_2
    new-instance v11, Lorg/json/JSONObject;

    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->gethttpsString:Ljava/lang/String;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$3(Lcom/example/m6shop/AddressListActivity;)Ljava/lang/String;

    move-result-object v15

    invoke-direct {v11, v15}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 285
    .restart local v11    # "jsonObject":Lorg/json/JSONObject;
    const-string v15, "error"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v15

    const-string v16, "true"

    invoke-virtual/range {v15 .. v16}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v15

    if-nez v15, :cond_0

    .line 289
    const-string v15, "msg"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->isNull(Ljava/lang/String;)Z

    move-result v15

    if-nez v15, :cond_0

    .line 294
    const-string v15, "msg"

    invoke-virtual {v11, v15}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v10

    .line 296
    .restart local v10    # "jsonArray":Lorg/json/JSONArray;
    const/4 v7, 0x0

    .restart local v7    # "i":I
    :goto_3
    invoke-virtual {v10}, Lorg/json/JSONArray;->length()I

    move-result v15

    if-lt v7, v15, :cond_2

    .line 326
    const-string v15, "yyyyyyyyyyyyyyyy"

    invoke-virtual {v11}, Lorg/json/JSONObject;->toString()Ljava/lang/String;

    move-result-object v16

    invoke-static/range {v15 .. v16}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    .line 335
    .end local v7    # "i":I
    .end local v10    # "jsonArray":Lorg/json/JSONArray;
    .end local v11    # "jsonObject":Lorg/json/JSONObject;
    :goto_4
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->handler:Landroid/os/Handler;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$7(Lcom/example/m6shop/AddressListActivity;)Landroid/os/Handler;

    move-result-object v15

    const/16 v16, 0x3

    invoke-virtual/range {v15 .. v16}, Landroid/os/Handler;->sendEmptyMessage(I)Z

    goto/16 :goto_0

    .line 298
    .restart local v7    # "i":I
    .restart local v10    # "jsonArray":Lorg/json/JSONArray;
    .restart local v11    # "jsonObject":Lorg/json/JSONObject;
    :cond_2
    :try_start_3
    invoke-virtual {v10, v7}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v12

    .line 299
    .restart local v12    # "jsonObject2":Lorg/json/JSONObject;
    const-string v15, "id"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v8

    .line 300
    .restart local v8    # "id":Ljava/lang/String;
    const-string v15, "contactname"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 301
    .restart local v4    # "contactname":Ljava/lang/String;
    const-string v15, "address"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 302
    .restart local v1    # "address":Ljava/lang/String;
    const-string v15, "phone"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v13

    .line 303
    .restart local v13    # "phonenet":Ljava/lang/String;
    const-string v15, "default"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 304
    .restart local v9    # "isdefault":Ljava/lang/String;
    const-string v15, "sex"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    .line 305
    .restart local v14    # "sexnet":Ljava/lang/String;
    const-string v15, "detailadr"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 306
    .restart local v5    # "detailadr":Ljava/lang/String;
    const-string v15, "bigadr"

    invoke-virtual {v12, v15}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 309
    .restart local v3    # "bigadr":Ljava/lang/String;
    new-instance v2, Lbean/AddressBean;

    invoke-direct {v2}, Lbean/AddressBean;-><init>()V

    .line 310
    .restart local v2    # "bean":Lbean/AddressBean;
    invoke-virtual {v2, v4}, Lbean/AddressBean;->setContactname(Ljava/lang/String;)V

    .line 311
    invoke-virtual {v2, v13}, Lbean/AddressBean;->setPhone(Ljava/lang/String;)V

    .line 312
    invoke-virtual {v2, v14}, Lbean/AddressBean;->setSex(Ljava/lang/String;)V

    .line 313
    invoke-virtual {v2, v8}, Lbean/AddressBean;->setId(Ljava/lang/String;)V

    .line 314
    invoke-virtual {v2, v1}, Lbean/AddressBean;->setAddress(Ljava/lang/String;)V

    .line 315
    invoke-virtual {v2, v5}, Lbean/AddressBean;->setDetailadr(Ljava/lang/String;)V

    .line 320
    const-string v15, ""

    invoke-virtual {v2, v15}, Lbean/AddressBean;->setBigadr(Ljava/lang/String;)V

    .line 321
    invoke-virtual {v2, v9}, Lbean/AddressBean;->setIs_default(Ljava/lang/String;)V

    .line 322
    move-object/from16 v0, p0

    iget-object v15, v0, Lcom/example/m6shop/AddressListActivity$2;->this$0:Lcom/example/m6shop/AddressListActivity;

    # getter for: Lcom/example/m6shop/AddressListActivity;->addressBeans:Ljava/util/ArrayList;
    invoke-static {v15}, Lcom/example/m6shop/AddressListActivity;->access$0(Lcom/example/m6shop/AddressListActivity;)Ljava/util/ArrayList;

    move-result-object v15

    invoke-virtual {v15, v2}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    .line 296
    add-int/lit8 v7, v7, 0x1

    goto :goto_3

    .line 329
    .end local v1    # "address":Ljava/lang/String;
    .end local v2    # "bean":Lbean/AddressBean;
    .end local v3    # "bigadr":Ljava/lang/String;
    .end local v4    # "contactname":Ljava/lang/String;
    .end local v5    # "detailadr":Ljava/lang/String;
    .end local v7    # "i":I
    .end local v8    # "id":Ljava/lang/String;
    .end local v9    # "isdefault":Ljava/lang/String;
    .end local v10    # "jsonArray":Lorg/json/JSONArray;
    .end local v11    # "jsonObject":Lorg/json/JSONObject;
    .end local v12    # "jsonObject2":Lorg/json/JSONObject;
    .end local v13    # "phonenet":Ljava/lang/String;
    .end local v14    # "sexnet":Ljava/lang/String;
    :catch_1
    move-exception v6

    .line 332
    .restart local v6    # "e":Lorg/json/JSONException;
    invoke-virtual {v6}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_4

    .line 188
    nop

    :pswitch_data_0
    .packed-switch 0x0
        :pswitch_2
        :pswitch_1
        :pswitch_4
        :pswitch_3
        :pswitch_0
        :pswitch_5
    .end packed-switch
.end method
